//
//  SettingsVC.m
//  jinwang
//
//  Created by jzb on 2018/3/13.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "SettingsVC.h"
#import "ChangePassWordVC.h"
#import "NewMessageNotifyVC.h"
#import "PrivacySettingsVC.h"
#import "BlacklistVC.h"
#import "FuwutiaokuanVC.h"

@interface SettingsVC ()


@end

@implementation SettingsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"设置";
    self.view.backgroundColor = [UIColor whiteColor];
}

- (IBAction)cellButtonOnclick:(UIButton *)sender {
    
    if (sender.tag == 1000) {
        ChangePassWordVC *VC = [ChangePassWordVC new];
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1001){
        NewMessageNotifyVC *VC = [NewMessageNotifyVC new];
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1002){
        PrivacySettingsVC *VC = [PrivacySettingsVC new];
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1003){
        BlacklistVC *VC = [BlacklistVC new];
        VC.vcType = @"黑名单";
        VC.title = @"黑名单";
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1004){
        BlacklistVC *VC = [BlacklistVC new];
        VC.vcType = @"只给一窗";
        VC.title = @"只给一窗";
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1005){
        FuwutiaokuanVC *VC = [FuwutiaokuanVC new];
        [self.navigationController pushViewController:VC animated:YES];
    }else if (sender.tag == 1006){
        [[ToolManager sharedManager]logoutACTIONFromSuperVC:self];
        BOOL isLogin = [[ToolManager sharedManager] checkLoginStateAtVC:self];
        if (!isLogin) {
            return;
        }
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
